package com.wenwu.dao;

import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wenwu.common.bean.RelicsDictionary;
import com.wenwu.common.bean.RelicsDictionaryExample;
import com.wenwu.common.page.PaginationVO;

public interface RelicsDictionaryMapper extends Dao {
	int countByExample(RelicsDictionaryExample example);

	int deleteByExample(RelicsDictionaryExample example);

	int deleteByPrimaryKey(Integer dictionaryId);

	int insert(RelicsDictionary record);

	int insertSelective(RelicsDictionary record);

	List<RelicsDictionary> selectByExample(RelicsDictionaryExample example);

	RelicsDictionary selectByPrimaryKey(Integer dictionaryId);

	int updateByExampleSelective(@Param("record") RelicsDictionary record,
			@Param("example") RelicsDictionaryExample example);

	int updateByExample(@Param("record") RelicsDictionary record,
			@Param("example") RelicsDictionaryExample example);

	int updateByPrimaryKeySelective(RelicsDictionary record);

	int updateByPrimaryKey(RelicsDictionary record);

	int selectTotalRecord(@Param("dictionary") RelicsDictionary dictionary)
			throws SQLException;

	List<RelicsDictionary> selectList(
			@Param("dictionary") RelicsDictionary dictionary,
			@Param("pageVo") PaginationVO pageVo) throws SQLException;
	//批量删除
	int deleteInfoByKey(List<?> list) throws SQLException;
}